package com.example.mapper;

import com.example.entity.Notice;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface NoticeMapper {
    List<Notice> selectAll(Notice notice);

    void insert(Notice notice);

//    @Select("select * from `notice` where username=#{username}")
//    Notice selectByUsername(String username);

    void updateById(Notice notice);

    @Delete("delete from `notice` where id =#{id}")
    void deleteById(Integer id);

//    @Select("select * from `notice` where id=#{id}")
//    Notice selectById(String id);
}
